package c.e.a.c.l;

import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.q;
import com.google.android.material.button.MaterialButton;

/* compiled from: MaterialCalendar */
public class g extends q {
    public final /* synthetic */ o a;
    public final /* synthetic */ MaterialButton b;
    public final /* synthetic */ d c;

    public g(d dVar, o oVar, MaterialButton materialButton) {
        this.c = dVar;
        this.a = oVar;
        this.b = materialButton;
    }

    public void a(RecyclerView recyclerView, int i) {
        if (i == 0) {
            recyclerView.announceForAccessibility(this.b.getText());
        }
    }

    public void b(RecyclerView recyclerView, int i, int i2) {
        int l1;
        if (i < 0) {
            l1 = this.c.m0().l1();
        } else {
            l1 = this.c.m0().n1();
        }
        this.c.b0 = this.a.h(l1);
        this.b.setText(this.a.c.a.c(l1).b);
    }
}
